package com.tdkj.model.shop;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * GoodsCommentTypes entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "shop_good_comment_level")
public class BeanGoodCommentLevel extends BaseEntity {

	private String name;
	
	private List<BeanGoodComment> comments;

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the comments
	 */
	@OneToMany(fetch=FetchType.LAZY, cascade={CascadeType.REFRESH}, mappedBy="level")
	public List<BeanGoodComment> getComments() {
		return comments;
	}

	/**
	 * @param comments the comments to set
	 */
	public void setComments(List<BeanGoodComment> comments) {
		this.comments = comments;
	}
	
	

}